import { defineStore } from 'pinia'
import { reactive, ref } from 'vue'

export const useUserStore = defineStore('user', () => {

    const islogin = ref(false)
    const user = ref({})

    function $reset() {
        islogin.value = false
        user.value = {}
    }

    return { user, $reset, islogin }
})